package com.weetop.akly.base.mvp;

import java.io.Serializable;

import lombok.Data;

@Data
public class BaseModel<T> implements Serializable {
    private int code; //  0成功  0 失败
    private String msg; //可用来返回接口的说明
    private T data; // 具体的数据结果

    public BaseModel( String msg,int code) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public T getData() {
        return data;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(T data) {
        this.data = data;
    }
}
